My .dunstrc
dunst(1)
is a lightweight and customizable
notification daemon.
You can install it via
# pkg_add dunst
$ cat $HOME/.dunstrc
[global]
geometry = "300x5-30+20"
indicate_hidden = yes
shrink = no
padding = 8
horizontal_padding = 8
sort = yes
idle_threshold = 10
font = Terminus (TTF) 9
markup = full
format = "<b>%s<b>\n%b"
alignment = right
show_age_threshold = 20
word_wrap = yes
stack_duplicates = false
sticky_history = yes
history_length = 20
show_indicators = yes
browser = /usr/local/bin/chrome
[shortcuts]
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+grave
context = ctrl+shift+grave
[urgency_low]
background = "#404040"
foreground = "#cccccc"
timeout = 1
[urgency_normal]
background = "#859900"
foreground = "#dddddd"
timeout = 10
[urgency_critical]
background = "#dc322f"
foreground = "#dddddd"
timeout = 0
(I recommend replacing spaces with tabs if you're going to copy&paste)
dunst(1)
normally keeps its configuration in
~/.config/dunst/dunstrc
, however I run it as
dunst -config "$HOME/.dunstrc" &
in my $HOME/.xinit
or
$HOME/.xession
files in order
to keep consistency with other configuration files.
You can send notifications via notify-send(1)
# pkg_add notify_send
$ notify-send --urgency low "hello, world"
$ notify-send --urgency normal "hello, world"
$ notify-send --urgency critical "hello, world"